package com.ctyon.common.event;

import android.util.Log;

/**
 * CreateDate：19-7-6 on 下午3:34
 * Describe:
 * Coder: lee
 */
public class LocationMessageEvent {

    private String lon;
    private String dim;
    private String location;
    private String step;
    private Long time;

    public LocationMessageEvent(String location) {
        try {
            Log.d("LocationMessageEvent", "location : " + location);
            String[] s = location.split("\\*");
            this.lon = s[1];
            this.dim = s[0];
            this.location = s[2];
            this.step = s[3];
            this.time = Long.valueOf(s[4]);
        }catch (Exception e){
            Log.d("LocationMessageEvent", "parse LocationMessage ERROR : " + e);
        }

    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getDim() {
        return dim;
    }

    public void setDim(String dim) {
        this.dim = dim;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getStep() {
        return step;
    }

    public void setStep(String step) {
        this.step = step;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }
}
